<script>
</script>
<div class="login">
      	<p style="float:right">
      		{if $userId neq ""}
      		<a href="{$projectUrl}/user/logout.php?url={$currentUrl}">退出</a>
      		{/if}
      	</p>
         <p style="float:right">
         	{if $userId neq ""}
         	<a href="{$projectUrl}/message/message.php?target=message">站内信(未读{$unReadNum})</a>
         	{/if}
         </p>
          <p style="float:right">
          	{if $userId eq ""}
          	<a href="{$projectUrl}/user/login.php?url={$currentUrl}">登录</a>
          	{else}
          	<a href="{$projectUrl}/user/user.php">{$userId}</a>
          	{/if}
          </p>
</div>